<template>
	<view class="box">
		<view class="title bold f30 f-w">
			<image src="https://jw.xzsw2021.com/static/user/icon_259@2x.png" mode=""></image>
			邀请好友的条件
		</view>
		<view class="desc f28">
			<view class="">在平台有过 <text  style="color: red;">1</text> 次消费记录，才可以在 <text  style="color: red;">家味菜市场</text>的邀请好 友，您已消费<text  style="color: red;">0</text> 次，请继续努力！</view>
			<view class="" style="margin-top: 20rpx;">邀请好友消费后将获得 <text style="color: red;">余额/商品券/红包奖</text></view>
		</view>
		<view class="btn" @click="goHome">去首页购物</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				 content:''
			}
		},
		onShow() {
			// this.check()
		},
		methods: {
			// 查询是不是分销商
			check(){
				uni.redirectTo({
					url:"/pages/user/invite/index"
				})
						
			},		
		
			// 去首页
			goHome(){
				uni.switchTab({
					url:'/pages/index/index'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.box{
		padding: 0 30rpx;
	}
	.title{
		margin: 63rpx 0 40rpx;
		image{
			margin-right: 14rpx;
			width: 36rpx;
			height: 36rpx;
		}
	}
	.desc{
		line-height: 46rpx;
	}
	.btn{
		position: fixed;
		bottom: 417rpx;
		left: 125rpx;
		width: 500rpx;
		height: 100rpx;
		text-align: center;
		line-height: 100rpx;
		color: #fff;
		font-size: 32rpx;
		background: linear-gradient(64deg, #2BCCA5, #22B591);
		box-shadow: 0rpx 4rpx 6rpx 0rpx rgba(20, 187, 146, 0.4);
		border-radius: 10rpx;
	}
</style>
